import pandas as pd
import numpy as np

np.random.seed(42)
scores = pd.Series(np.random.uniform(50,101,10),index = ['student'+str(i) for i in range(1,11)])
for i in range(0,10):
    scores.iloc[i] = scores.iloc[i]-scores.iloc[i]%0.1
print(scores)

print("mean:",scores.mean())
print("max:",scores.max())
print("min:",scores.min())
better = pd.Series(np.array(scores[scores>scores.mean()]))
print("高于平均分的人数:",len(better))
print("rank:")
print(scores.sort_values(ascending=False))
















